import request from '@/utils/request'

const reqMine ={

    uploadUserIcon:(userid,formData)=>{
        return request.post(`/upload/usericon/${userid}`,formData,{
            headers:{
                //上传的是文件
                "Content-Type": "multipart/form-data"
            }
        }).then(res=>{
            return res.data
        })
    },
        //修改用户个人信息
    editUserInfo:(user)=>{
         return request.post("/user/edituserinfo",{
             "id":user.id,
             "nickname":user.nickname,
             "phone":user.phone,
             "email":user.email
            }).then(res=>{
                return res.data;
            })
        },



}
export default reqMine;